package com;

import com.controller.LoginController;
import com.controller.StudentController;
import com.google.gson.Gson;

import java.sql.SQLException;

import static spark.Spark.*;

/**
 * Created by GaoWenqi on 2017/11/26 0026.
 */
public class HelloWorld {
    public static Gson gson = new Gson();

    public static void main(String[] args) {
        staticFileLocation("/public");

        try {
            (new StudentController()).init();
            (new LoginController()).init();
        } catch (SQLException e) {
            e.printStackTrace();
        }

    }
}
